﻿using FireChat.Server.Session.Receiver;
using FireChat.Share.Web.Actions;
using FireChat.Share.Web.Package;

namespace FireChat.Server.Session.Actions;



/// <summary>
/// 服务端动作
/// </summary>
internal interface IServerAction : IAction
{
    /// <summary>
    /// 对应的动作类型
    /// </summary>
    ServertActions Type { get; }

    /// <summary>
    /// 执行过程
    /// </summary>
    /// <param name="receiver">Socket</param>
    /// <param name="package">服务端数据包</param>
    ServerPackage Excute(PackageReceiver receiver);
}